import Vue from 'vue'
import App from './App.vue'
import router from './router'  //引入路由模块
import axios from 'axios'
import VueAxios from 'vue-axios'
import ElementUI from 'element-ui'; //加入
import 'element-ui/lib/theme-chalk/index.css';//加入
import utils from './utils/utils.js'
import ws from './utils/ws.js'

// 导入 EventBus
import EventBus from './utils/EventBus.js'


//创建一个eventbus的原型对象
Vue.prototype.$EventBus = EventBus
Vue.prototype.$ = utils
Vue.prototype.$ws = ws

Vue.use(ElementUI);//加入
Vue.use(VueAxios, axios)
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
